package com.itlong.cloud.equip.operate;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * <desc>
 *      运营-运营管理-导入云对讲第三方账号token服务接口暴露
 * <desc/>
 *
 * @createDate 2018/07/16
 */
@FeignClient(name = "equip-service")
public interface IOperateTokenImportServiceClient {

    /**
     * <desc>
     *      第三方提供云对讲token账号导入
     * </desc>
     *
     * @param accountAndToken 账号和token数据集
     * @return 受影响的行数
     * @author wangzhi
     * @createDate 2018/07/16
     */
    @PostMapping(path = "operate/tokenImport/import")
    Integer importCloudIntercomToken(@RequestBody Map<String, String> accountAndToken) throws Exception;

    /**
     * <desc>
     *      第三方提供云对讲appid应用账号导入
     * </desc>
     *
     * @param appid appid数据集
     * @return 受影响的行数
     * @author Juguang.S
     * @createDate 2018/12/19
     */
    @PostMapping(path = "operate/appidImport/importAppid")
    Integer importCloudIntercomAppid(@RequestBody Map<String, String> appid) throws Exception;

}
